<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/resource/index.css" rel="stylesheet" />
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="fixed-table-toolbar">
                    <input class="hidden" id="authority" name="authority" th:value="${authority}" >
                </div>
                <div class="ibox-content" style="padding: 0">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="layui-form-item">
                            <label class="col-sm-2 control-label">资源名称：</label>
                            <div class="col-sm-5">
                                <input id="name" name="name" placeholder="请输入资源名称" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="col-sm-2 control-label">讲师姓名：</label>
                            <div class="col-sm-5">
                                <input id="couName" name="couName" placeholder="请输入讲师姓名" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="col-sm-2 control-label">资源介绍：</label>
                            <div class="col-sm-5">
                                <textarea id="couIntroduce" name="couIntroduce" placeholder="请输入资源介绍" class="form-control" rows="5" oninput="limitTextarea(this, 1500)"></textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="col-sm-2 control-label">资源封面：</label>
                            <div class="col-sm-10">
                                <div id="btnUpload" style="width: 10%;">
                                    <div style="border: 1px dashed #dedede;width: 100%;height: 105px;">
                                        <img src="/img/webuploader.png">
                                        <p style="margin-left: 14px">点击上传</p>
                                        <input type="text" style="opacity:0;width: 0px;" id="introducePortrait"
                                               name="introducePortrait"/>
                                    </div>
                                </div>
                                <div id="imgAll" style="margin-top: 10px">

                                </div>
                            </div>
                        </div>
                        <div class="teacher">
                            <div class="layui-form-item" >
                                <label class="col-sm-3 control-label">是否分享至校本资源库</label>
                                <div class="layui-input-block" style="display:flex;">
                                    <div style="margin-right: 20px;line-height: 35px">
                                        <input  type="radio" name="publicity" value="0" title="是" class=" layui-input-lg" >
                                        <span>是</span>
                                    </div>
                                    <div style="line-height: 35px">
                                        <input type="radio" name="publicity" value="1" title="否" class=" layui-input-lg" checked>
                                        <span>否</span>
                                    </div>

                                </div>
                            </div>

                            <div id="selectChange" class="layui-form-item" style="display:none;">
                                <label class="col-sm-2 control-label">资源类型：</label>
                                <div class="col-sm-5" >
                                    <select class="form-control" name="newType" id="newType">
                                        <option value="1">精品课程</option>
                                        <option value="2">自建课程</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="Administrator">
                            <div class="layui-form-item">
                                <label class="col-sm-2 control-label">资源状态：</label>
                                <div class="layui-input-block" style="display:flex;">
                                    <div style="margin-right: 20px;line-height: 35px">
                                        <input  type="radio" name="state" value="0" title="展示" class=" layui-input-lg" checked>
                                        <span>展示</span>
                                    </div>
                                    <div style="line-height: 35px">
                                        <input type="radio" name="state" value="1" title="不展示" class=" layui-input-lg" >
                                        <span>不展示</span>
                                    </div>

                                </div>
                            </div>
                            <div id="selectChanges" class="layui-form-item" >
                                <label class="col-sm-2 control-label">资源优先级：</label>
                                <div class="col-sm-5">
                                    <input id="sort"  name="sort" placeholder="请输入数字，数字越大越靠前" class="form-control" type="text">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-10 col-sm-offset-5">
                                <button type="submit" class="layui-btn">确定</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="overlay">
    <img src="" alt="image">
</div>
<div th:include="include::footer"></div>
<!--<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>-->
<script type="text/javascript" src="/js/webJs/jzweb/resource/add.js">
</script>

<script>

    /*$(function () {

    })*/

</script>

</body>
</html>
